<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">


	</style>
</head>
<body>
	
</body>
<script type="text/javascript">
	// str='linux and lasr and linxx';
	// arr=str.match(/lin[ux]/ig);
	// alert(arr);


// 	str='1 and 4 and 0 and 90 and 2389';
// 	arr=str.match(/[0-9]/ig);
// 	alert(arr);


// str='linux and php and 2 and ';
// arr=str.match(/p\wp/ig);
// alert(arr);

// str='linux and php and 2 andp-p and php ';
// arr=str.match(/p\Wp/ig);
// alert(arr);


// str='linux and php and 3 and 2 and 20 and linkx and lionx and linux and Php and passsssssp and pbp andp2p and linxx is lamp';
// arr=str.match(/p.{1,}?p/ig);
// alert(arr);



// str='linux and php and 3 and 2 and 20 and linkx and lionx and linux and Php and passsssssp and pbp andp2p and linxx is lamp';
// arr=str.match(/p.p/ig);
// alert(arr);


str='linux and php and 3 and 2 and 20 and linkx and lionx and linux and Php and passsssssp and is pbp is p2p and linxx pep is lamp';
arr=str.match(/p.p(?=is)/ig);
alert(arr);


// str='linux and php and 3 and 2 and 20 and linkx and\nlinox and linyx and Php and passsssssp and pbp is andp2p and\nlinxx pep is lamp';
// arr=str.match(/^lin.x/igm);
// alert(arr);



</script>
</html>